from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class keylogin(models.Model):
    id = models.IntegerField("ID",primary_key=True)
    user_number = models.CharField("用户名",max_length=50,default="尚未替换")
    user_name = models.CharField("姓名",max_length=50,default="尚未替换")

    #新加入类
    nametype = models.CharField("描述",max_length=100,default="尚未替换")

class Main_News(models.Model):
    id = models.IntegerField("ID",primary_key=True)
    title = models.CharField("标题",max_length=200,default="还没有内容")
    body = models.TextField("内容",default="还没有内容")
    startdata = models.DateTimeField("起始时间",auto_now=True)
    enddata = models.DateTimeField("结束时间",auto_now=True)

